use base64::{decode, encode, DecodeError};

fn main() {
    let hello = b"Hello rustaceans";
    let encoded = encode(hello);
    let decoded = decode(&encoded).unwrap();

    println!("origin: {}", std::str::from_utf8(hello).unwrap());
    println!("base64 encoded: {}", encoded);
    println!("back to origin: {}", std::str::from_utf8(&decoded).unwrap());
}
